package com.card.user;

import java.util.Date;
import java.util.List;

import com.card.game.BasePlayer;
import com.card.game.ZjhPlayer;
import com.card.game.room.AbstractRoom;
import com.card.game.room.TggRoom;
import com.google.common.collect.Lists;
import com.xiaoao.net.utils.TimeUtils;

public class UserBack{
	String id;
	String date;
	int roomId;
	int juNum;
	List<String> names = Lists.newArrayList();
	List<Integer> scores = Lists.newArrayList();
	
	public UserBack() {
	}

	public UserBack(AbstractRoom room) {
		this.juNum = room.playNum;
		this.date = TimeUtils.ToString2(new Date());
		this.roomId = room.getId();
	}
	
	public void addScore(String name,int score) {
		names.add(name);
		scores.add(score);
	}

	public void setId(String id) {
		this.id = id;
	}
	
	
	  
}
